class Solution:
    def translateNum(self, num: int) -> int:
        if num < 10:
            return 1
        while num >= 10:
            num /= 10



ans = Solution(  )
xx = ans.translateNum(num= 12258)
print(xx)